_h_a_n_d_l_e_P_t_r A pointer to the returned handle of the decompressor. Used
by subsequent calls to identify the decompressor.
_h_a_n_d_l_e A handle to the decompressor.
_n_u_m_b_e_r_O_f_F_r_a_m_e_s The number of frames to decompress, which should be a
multiple of CL_FRAMES_PER_CHUNK (usually 1 for video).
_n_u_m_b_e_r_O_f_F_r_a_m_e_s may also be specified as
CCCCLLLL____CCCCOOOONNNNTTTTIIIINNNNUUUUOOOOUUUUSSSS____BBBBLLLLOOOOCCCCKKKK or CCCCLLLL____CCCCOOOONNNNTTTTIIIINNNNUUUUOOOOUUUUSSSS____NNNNOOOONNNNBBBBLLLLOOOOCCCCKKKK.
_c_o_m_p_r_e_s_s_e_d_B_u_f_f_e_r_S_i_z_e
The size of the data to be decompressed in bytes. Used
with non-NULL _c_o_m_p_r_e_s_s_e_d_B_u_f_f_e_r to describe buffer length.
_c_o_m_p_r_e_s_s_e_d_B_u_f_f_e_r
A pointer to the data to be decompressed. A value of NULL
selects the use of a previously created buffer to supply
the compressed data (Implicit Buffering).
_f_r_a_m_e_B_u_f_f_e_r A pointer to where decompressed frames are to be placed.
A value of CCCCLLLL____EEEEXXXXTTTTEEEERRRRNNNNAAAALLLL____DDDDEEEEVVVVIIIICCCCEEEE may be used with some
decompressors to indicate a direct connection to an
external video or audio destination. A value of NULL
selects the use of a previously created buffer to hold the
decompressed frames (Implicit Buffering).
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
ccccllllOOOOppppeeeennnnDDDDeeeeccccoooommmmpppprrrreeeessssssssoooorrrr opens a decompressor for a given scheme. It is called
before ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss or any call that requires a decompressor handle.
ccccllllCCCClllloooosssseeeeDDDDeeeeccccoooommmmpppprrrreeeessssssssoooorrrr closes the decompressor after which _h_a_n_d_l_e is no
longer valid.
ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss invokes different buffering models depending on the values
If _c_o_m_p_r_e_s_s_e_d_B_u_f_f_e_r and _f_r_a_m_e_B_u_f_f_e_r are non-NULL,
ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss decompresses _n_u_m_b_e_r_O_f_F_r_a_m_e_s from
_c_o_m_p_r_e_s_s_e_d_B_u_f_f_e_r and stores the result in _f_r_a_m_e_B_u_f_f_e_r.
_f_r_a_m_e_B_u_f_f_e_r may also be set to CL_EXTERNAL_DEVICE to indicate
a hardware output destination (currently supported by CL_JPEG_COSMO).
2. Implicit Buffering
If _c_o_m_p_r_e_s_s_e_d_B_u_f_f_e_r and _f_r_a_m_e_B_u_f_f_e_r are NULL,
ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss operates on buffers that have been created
previously with ccccllllCCCCrrrreeeeaaaatttteeeeBBBBuuuuffff. The input buffer should be
filled with calls to ccccllllQQQQuuuueeeerrrryyyyFFFFrrrreeeeeeee, ccccllllUUUUppppddddaaaatttteeeeHHHHeeeeaaaadddd, and
ccccllllDDDDoooonnnneeeeUUUUppppddddaaaattttiiiinnnnggggHHHHeeeeaaaadddd. The output buffer should be emptied
with calls to ccccllllQQQQuuuueeeerrrryyyyVVVVaaaalllliiiidddd and ccccllllUUUUppppddddaaaatttteeeeTTTTaaaaiiiillll.
Direct and Implicit Buffering models may be mixed in one call by setting
one of the buffer arguments to be non-NULL, and the other to be NULL.
With either model, buffers should be appropriately sized for proper
execution of ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss. The input compressed buffer should have a
minimum capacity of CL_COMPRESSED_BUFFER_SIZE bytes. The output frame
buffer should have a minimum capacity of CL_FRAMES_PER_CHUNK frames.
These parameters may be determined by calling ccccllllGGGGeeeettttPPPPaaaarrrraaaammmmssss, after first
calling ccccllllRRRReeeeaaaaddddHHHHeeeeaaaaddddeeeerrrr to configure the decompressor.
If _n_u_m_b_e_r_O_f_F_r_a_m_e_s is non-negative, ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss may consume up to
CL_COMPRESSED_BUFFER_SIZE * _n_u_m_b_e_r_O_f_F_r_a_m_e_s / CL_FRAMES_PER_CHUNK bytes of
input data and attempts to produce _n_u_m_b_e_r_O_f_F_r_a_m_e_s frames of output data.
The call does not return until processing is completed.
If _n_u_m_b_e_r_O_f_F_r_a_m_e_s is specified as CL_CONTINUOUS_BLOCK or
CL_CONTINUOUS_NONBLOCK then ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss continues until either the input
buffer is marked done, or a call to ccccllllCCCClllloooosssseeeeDDDDeeeeccccoooommmmpppprrrreeeessssssssoooorrrr is made.
CL_CONTINUOUS_NONBLOCK differs from CL_CONTINUOUS_BLOCK in that the call
to ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss returns immediately while the decompression occurs in a
separate thread. These special values should only be used with Implicit
Buffering.
Multiple decompressors can be open simultaneously. _h_a_n_d_l_e identifies
which one is being referenced.
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
Upon success, ccccllllOOOOppppeeeennnnDDDDeeeeccccoooommmmpppprrrreeeessssssssoooorrrr and ccccllllCCCClllloooosssseeeeDDDDeeeeccccoooommmmpppprrrreeeessssssssoooorrrr return SUCCESS,
and ccccllllDDDDeeeeccccoooommmmpppprrrreeeessssssss returns the numberOfFrames actually produced or, in the
case of CL_CONTINUOUS_NONBLOCK, returns SUCCESS immediately.
Upon failure, each routine returns a negative error code. With some
schemes, ccccllllOOOOppppeeeennnnDDDDeeeeccccoooommmmpppprrrreeeessssssssoooorrrr returns CL_SCHEME_BUSY if there is a system
resource (e.g. a piece of hardware) which is in use by another process.
A return code of CL_SCHEME_NOT_AVAILABLE indicates that the hardware or
software required by the scheme is not installed on the system.